package com.ruoyi.livenuniappserver.api.memberUser.service.impl;

import com.ruoyi.livenuniappserver.api.memberUser.mapper.MemberUserMapper;
import com.ruoyi.livenuniappserver.api.memberUser.service.MemberUserService;
import com.ruoyi.server.api.memberUserManagement.domain.MemberUserManagement;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName MemverUserServiceImpl
 * @Description TODO
 * @Author 26503
 * @Date 2024/6/27 19:25
 **/
@Service
public class MemberUserServiceImpl implements MemberUserService {

    @Autowired
    private MemberUserMapper memberUserMapper;

    @Override
    public MemberUserManagement selectMemberByPhone(String phone) {

        return memberUserMapper.selectMemberByPhone(phone);
    }

    @Override
    public void insertMemberUser(MemberUserManagement m) {
        memberUserMapper.insertMemberUser(m);
    }

    @Override
    public List<MemberUserManagement> selectList(Integer id, String venueUniqueIdentifier) {
        List<MemberUserManagement> memberUserManagements = memberUserMapper.selectList(id, venueUniqueIdentifier);
        return memberUserManagements;
    }
}
